//
//  MSToast.m
//  Sword
//
//  Created by haorenjie on 16/6/15.
//  Copyright © 2016年 mjsfax. All rights reserved.
//

#import "MSToast.h"
#import "UIView+Toast.h"

@implementation MSToast

+ (void)show:(NSString *)message {
    [self show:message duration:1.25];
}

+ (void)show:(NSString *)message duration:(NSTimeInterval)duration {
    
    duration = (duration <= 0) ? 1 : duration;
    
    UIWindow *window = [[UIApplication sharedApplication].delegate window];
    [window makeToast:message duration:duration position:CSToastPositionCenter];
}

@end
